import axios from 'axios';

const http = axios.create({
  baseURL: '',
  timeout: 60000,
});

// http.defaults.transformRequest = (data) => {
//   return data;
// };

http.interceptors.response.use(
  (res) => {
    return res.data;
  },
  (err) => {
    console.error(err);
  },
);

export { http };
